package net.chathu.airgw.packets.gw.serverpackets 
{
	import net.chathu.airgw.Config;
	/**
	 * ...
	 * @author ze
	 */
	public class HostAndVersionPacket implements ISendableIRCPacket 
	{
		private static const _head:String = " 002 ";
		private var _nick:String;
		private var _version:String;
		
		public function HostAndVersionPacket(nick:String, version:String) {
			_nick = nick;
			_version = version;
		}
		
		public function getMessage():String	{
			return ":" + Config.IRC_HOST + _head + _nick + " :Your host is " + Config.IRC_HOST +", running version " + _version + "\n";
		}
		
	}

}